<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <script src="./js/aes_1.js"></script>
    <script src="./js/md5.js"></script>
    <script>
        //MD5加密
        console.info("MD5加密------:" + hex_md5("你好，欢迎来到开源中国在线工具，这是一个AES加密测试"))

        //AES加密
        var pwd = "1234567812345678"; //秘钥
        var mi = CryptoJS.AES.encrypt('{"registFloor":2,"endTime":"2020-03-16 17:32"}', pwd);
        console.log("AES加密数据:" + mi.toString())

        //AES解密
        var result = CryptoJS.AES.decrypt(mi, pwd).toString(CryptoJS.enc.Utf8);
        console.log("AES解密结果------：" + result);
    </script>
</head>

<body>

</body>

</html>